package com.hs.ding.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author YingFeng
 * @since 2022-06-16
 */
@TableName("t_vehicle")
public class Vehicle implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 需求单号，编码随机生成
     */
    @TableId(value = "v_order_id")
    private String vOrderId;

    /**
     * 订单单号
     */
    private String orderId;
    /**
     * 需求状态
     */
    private Integer vStatus;

    /**
     * 订单对象
     */
    @TableField(exist = false)
    private Need need;

    @TableField(exist = false)
    private String carrierName;

    @TableField(exist = false)
    private String carPlate;

    @TableField(exist = false)
    private String driverName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getvOrderId() {
        return vOrderId;
    }

    public void setvOrderId(String vOrderId) {
        this.vOrderId = vOrderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getvStatus() {
        return vStatus;
    }

    public void setvStatus(Integer vStatus) {
        this.vStatus = vStatus;
    }

    public Need getNeed() {
        return need;
    }

    public void setNeed(Need need) {
        this.need = need;
    }

    public String getCarrierName() {
        return carrierName;
    }

    public void setCarrierName(String carrierName) {
        this.carrierName = carrierName;
    }

    public String getCarPlate() {
        return carPlate;
    }

    public void setCarPlate(String carPlate) {
        this.carPlate = carPlate;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    @Override
    public String toString() {
        return "Vehicle{" +
                "vOrderId='" + vOrderId + '\'' +
                ", orderId='" + orderId + '\'' +
                ", vStatus=" + vStatus +
                ", need=" + need +
                ", carrierName='" + carrierName + '\'' +
                ", carPlate='" + carPlate + '\'' +
                ", driverName='" + driverName + '\'' +
                '}';
    }
}
